package com.xbongbong.pro.oriStock.pojo;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Program xbb-pro
 * @Description 期初库存表单保存
 * @Author caoyy
 * @Date 2019/10/16
 **/
@Getter
@Setter
@ToString
public class OriStockSaveDTO extends BaseDTO{


    private static final long serialVersionUID = 4558057377081680398L;

    private Long appId;

    private Long menuId;

    private Long formId = 0L;
    /**
     * 数据
     */
    private JSONObject dataList;

    /**
     * 操作
     */
    private Integer businessType;
    private Integer fromEdit;

    /**
     * 是否是导入 1是导入
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isImport;

    private String processCreatorId;
    /**
     * 编号，流水号
     */
    @Length(max = 50, message = "编号超过最大位数限制，请控制在50位以内")
    @NotNull
    private String serialNo;
}
